/*
 * Created on 2005-10-17
 *
 */
package com.yl.cap.analyst.work.service;

import java.util.Date;
import java.util.List;

import org.faquir.hibernate.queryhelper.Page;

public interface WorkService
{
    public List searchTask(String groupId);

    public void addTask(String taskFileName) throws Exception;

    public List getAllTrigger();

    public List getTaskByTiger(String triggerName);

    public void setTrigger(String taskFileName, String oldTriggerName,
            String newTriggerName);
    
    public List getTriggerState();
    
    public Boolean getTriggerState(String triggerName);

    public void delTask(String triggerName, String taskFileName);

    public void reOrderTask(String triggerName, List taskList);

    public void enableTrigger(String triggerName);

    public void disableTrigger(String triggerName);

    public void enableTrigger(int triggerNum);

    public void disableTrigger(int triggerNum);
    
    public void executeJob(String triggerName);
    
    public List getAllJobName();
    
    public List getTaskByJob(String jobId);
    
    public Page getJob(String jobName,Date from,Date to,int currentPage) throws Exception;
    
    public Page getLastLog(int currentPage) throws Exception;
}
